component accessors="true"
{
	property name="companyDao";
	property name="contactDao";
	
	public function getCompany( id )
	{
		return companyDao.get( id );
	}
	
	public function getContact( id )
	{
		return contactDao.get( id );
	}
	
	public function listCompanies()
	{
		return companyDao.list();
	}
	
	public function listContacts()
	{
		return contactDao.list();
	}
	
	public function saveCompany( company )
	{
		companyDao.save( company );
		ormFlush();
		
		return company;
	}
	
	public function saveContact( contact )
	{
		contactDao.save( contact );
		ormFlush();
		
		return contact;
	}
}